home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / ixemul / sdk / man / cat4 / icmp.0 next >
Encoding:
Text File  |  1998-06-15  |  2.3 KB  |  53 lines

  1.  
  2. ICMP(4)                    UNIX Programmer's Manual                    ICMP(4)
  3.  
  4. NNAAMMEE
  5.      iiccmmpp - Internet Control Message Protocol
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssyyss//ssoocckkeett..hh>>
  9.      ##iinncclluuddee <<nneettiinneett//iinn..hh>>
  10.  
  11.      _i_n_t
  12.      ssoocckkeett(_A_F___I_N_E_T, _S_O_C_K___R_A_W, _p_r_o_t_o)
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      ICMP is the error and control message protocol used by IP and the Inter-
  16.      net protocol family.  It may be accessed through a ``raw socket'' for
  17.      network monitoring and diagnostic functions.  The _p_r_o_t_o parameter to the
  18.      socket call to create an ICMP socket is obtained from getprotobyname(3).
  19.      ICMP sockets are connectionless, and are normally used with the sendto
  20.      and recvfrom calls, though the connect(2) call may also be used to fix
  21.      the destination for future packets (in which case the read(2) or recv(2)
  22.      and write(2) or send(2) system calls may be used).
  23.  
  24.      Outgoing packets automatically have an IP header prepended to them (based
  25.      on the destination address).  Incoming packets are received with the IP
  26.      header and options intact.
  27.  
  28. DDIIAAGGNNOOSSTTIICCSS
  29.      A socket operation may fail with one of the following errors returned:
  30.  
  31.      [EISCONN]        when trying to establish a connection on a socket which
  32.                       already has one, or when trying to send a datagram with
  33.                       the destination address specified and the socket is al-
  34.                       ready connected;
  35.  
  36.      [ENOTCONN]       when trying to send a datagram, but no destination ad-
  37.                       dress is specified, and the socket hasn't been connect-
  38.                       ed;
  39.  
  40.      [ENOBUFS]        when the system runs out of memory for an internal data
  41.                       structure;
  42.  
  43.      [EADDRNOTAVAIL]  when an attempt is made to create a socket with a net-
  44.                       work address for which no network interface exists.
  45.  
  46. SSEEEE AALLSSOO
  47.      send(2),  recv(2),  intro(4),  inet(4),  ip(4)
  48.  
  49. HHIISSTTOORRYY
  50.      The iiccmmpp protocol appeared in 4.3BSD.
  51.  
  52. 4.3 Berkeley Distribution        June 5, 1993                                1
  53.